package cn.edu.zju.om.analyse;

public class PhraseFeatureVector {
	
	private Phrase phrase;
	
	private double[] featureVector;
	
	public PhraseFeatureVector(Phrase phrase, double[] featureVector) {
		this.phrase = phrase;
		this.featureVector = featureVector;
		
		Helper.assertArrayNoLessThanOne(featureVector);
	}
	
	public Phrase getPhrase() {
		return phrase;
	}
	
	public String getPhraseHeadTerm() {
		return phrase.getHeadTerm();
	}
	
	public double[] getFeatureVector() {
		return featureVector;
	}

}
